# -*- coding: utf-8 -*-
__author__ = 'sunnychou'
__date__ = '2019/8/2 16:48'

from common.mssql_helper import g_msql_inst

def fetch_tb_unique_his_data(unique_select_sql):
    '''
    获取所有历史数据的唯一标识, 判断表中的数据
    :return:
    '''
    #gys_select_sql = "select  distinct code  from k3_gongys"
    unique_select_list = g_msql_inst.fetch_all(unique_select_sql)
    unique_set = set()
    for unique in unique_select_list:
        unique_code = unique[0]
        unique_set.add(unique_code)
    return unique_set